package edu.iss.demo.web.validator;

import org.springframework.stereotype.Component;
import org.springframework.validation.Errors;
import org.springframework.validation.ValidationUtils;
import org.springframework.validation.Validator;

import edu.iss.demo.model.Employee;

//@Component
//public class AddStaffValidator implements Validator {
//	
//	
//	@Override
//	public boolean supports(Class<?> clazz) {
//		return Employee.class.isAssignableFrom(clazz);
//	}
//
//	@Override
//	public void validate(Object target, Errors errors) {
//		Employee em = (Employee) target;
//		ValidationUtils.rejectIfEmpty(errors, "employeeID", "employee.employeeID.empty");
//		
//	
//		
//	}
//}